<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="stylesheet" href="../../css/bootstrap.css">
    <script type="text/javascript" src="../../js/jquery-1.12.4.js"></script>
    <script type="text/javascript" src="../../js/bootstrap.js"></script>
</head>
<body>
<div class="panel panel-default">
    <div class="panel-heading">
        <h4>订单管理</h4>
    </div>
    <div class="panel-body">
        <table class="table table-striped table-bordered">
            <thead>
            <tr>
                <th>订单编号</th>
                <th>金额</th>
                <th>订单状态</th>
                <th>收件人</th>
                <th>收货地址</th>
                <th>创建日期</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>1589006571096</td>
                <td>48.0</td>
                <td>未付款</td>
                <td>徐双元</td>
                <td>郑州硅谷</td>
                <td>2020-05-09</td>
                <td>
                    <a href="detail.html" class="btn btn-info" >订单详细信息</a>
                </td>
            </tr>

            <tr>
                <td>1589006571097</td>
                <td>48.0</td>
                <td>未付款</td>
                <td>徐双元</td>
                <td>郑州硅谷</td>
                <td>2020-05-10</td>
                <td>
                    <a href="detail.html" class="btn btn-info" >订单详细信息</a>
                </td>
            </tr>

            </tbody>
        </table>
        <ul class="pagination">
            <li><a href=""><span>&laquo;</span></a></li>
            <li><a href="">1</a></li>
            <li><a href="">2</a></li>
            <li><a href="">3</a></li>
            <li><a href="">4</a></li>
            <li><a href="">5</a></li>
            <li><a href=""><span>&raquo;</span></a></li>
        </ul>
    </div>
    <div class="panel-footer"></div>
</div>
<script>
    console.log(document.body.scrollHeight);
    $(function(){
        $(".collapse").on('shown.bs.collapse',function(){
            console.log("shown");
            console.log(document.body.scrollHeight);
            $(parent.document).find("#content").prop("height",document.body.scrollHeight);
        })

        $(".collapse").on("hidden.bs.collapse",function(){
            console.log("hidden");
            console.log(document.body.scrollHeight);
            $(parent.document).find("#content").prop("height",document.body.scrollHeight);
        })
    })
</script>
</body>
</html>